package com.clever.mall.entity;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class DisReUser implements Serializable {
    /**
     * 用户与优惠券的关联表
     */
    private Integer reId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 优惠券id
     */
    private Integer discountId;

    /**
     * 优惠券的数量 默认为1
     */
    private Integer sum;

    /**
     * 是否删除 默认为0
     */
    private Integer isDelete;

    private static final long serialVersionUID = 1L;

    public DisReUser(Integer userId, Integer discountId, Integer sum) {
        this.userId = userId;
        this.discountId = discountId;
        this.sum = sum;
    }
}

